<?php

namespace app\popo\vo;

use app\popo\BaseVO;

/**
 * 营业额统计VO
 */
class TurnoverReportVO extends BaseVO
{
    /**
     * 日期，以逗号分隔，例如：2022-10-01,2022-10-02,2022-10-03
     */
    public string $dateList;

    /**
     * 营业额，以逗号分隔，例如：406.0,1520.0,75.0
     */
    public string $turnoverList;

    public function getDateList(): string
    {
        return $this->dateList ?? '';
    }

    public function setDateList(string $dateList): void
    {
        $this->dateList = $dateList;
    }

    public function getTurnoverList(): string
    {
        return $this->turnoverList ?? '';
    }

    public function setTurnoverList(string $turnoverList): void
    {
        $this->turnoverList = $turnoverList;
    }

    public function toArray(): array
    {
        return [
            'dateList' => $this->dateList ?? '',
            'turnoverList' => $this->turnoverList ?? ''
        ];
    }
}